﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laohan.Common.USB.DeviceNotify
{
    public abstract class DeviceNotifyEventArgs : EventArgs
    {
        internal DeviceType mDeviceType;

        internal EventType mEventType;

        internal object mObject = null;

        public EventType EventType => mEventType;

        public DeviceType DeviceType => mDeviceType;

        public object Object => mObject;

        public override string ToString()
        {
            object[] args = new object[3]
            {
            DeviceType,
            EventType,
            mObject.ToString()
            };
            return string.Format("[DeviceType:{0}] [EventType:{1}] {2}", args);
        }
    }
}
